namespace Comms.Drt {
    public class ClientJoinGameRequestMessage : Message {
        public int GameID;

        public string ClientName;

        public byte[] JoinRequestBytes;

        public override void Read(Reader reader) {
            GameID = reader.ReadPackedInt32();
            ClientName = reader.ReadString();
            JoinRequestBytes = reader.ReadBytes();
        }

        public override void Write(Writer writer) {
            writer.WritePackedInt32(GameID);
            writer.WriteString(ClientName);
            writer.WriteBytes(JoinRequestBytes);
        }
    }
}